# -*- coding:utf-8 -*-
# @Time: 2020/7/30 17:19
# @Author: liupengfei
# @File: urls.py
from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import MediaViewSet, MediaHotViewSet, MediaDetailViewSet

app_name = 'media'
urlpatterns = [
    path('hot/', MediaHotViewSet.as_view()),  # 热日志
    path('<int:pk>/detail/', MediaDetailViewSet.as_view()),  # 详情

]
router = SimpleRouter()
router.register('', MediaViewSet)  #
urlpatterns += router.urls
